package ru.romannep.pc.chopperbattle;

import java.io.Serializable;
import java.util.ArrayList;

public class ChopperCommands implements Serializable {

    public long gameCycle;
    public ArrayList<GameChopperCommand> commands;

    public ChopperCommands(long gameCircle, ArrayList<GameChopperCommand> commands) {
        this.gameCycle = gameCircle;
        this.commands = commands;
    }

    @Override
    public String toString() {
        String ret = ":" + gameCycle + ":" + commands.size() + ":";
        for (GameChopperCommand com : commands) {
            ret += com + "!";
        }
        return ret;

    }
}
